package com.example.lanou.mynews.application;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.LongSparseArray;
import android.util.SparseArray;
import android.util.SparseBooleanArray;

/**
 * Created by dllo on 16/1/14.
 */
public class MyApplication extends Application {
    private static Context context;
    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        SharedPreferences shared = context.getSharedPreferences("titles", Activity.MODE_PRIVATE);
        shared.edit().putBoolean("first", false);
        shared.edit().commit();






    }
    public static Context getContext(){
        return context;
    }
}
